Query Time Versus Redundancy Trade-Offs for Range Queries
نویسندگان
چکیده
Let A(l),A(2),...,A(n) be an array which stores values in a commutative semi-group S. We are concerned with the design of data structures for representing the array A(i) which facilitate implementation of the range queries Retrieve(j, k) defined as follows. Retrieve(j, k) (l<j<k&n) Return i A(i). i=j An obvious data structure would be the array A(j) itself. This approach has the disadvantage that the Retrieve task can take time n in the worst case. Another natural data structure would consist of a minimal height binary tree with n leaves. In the jth leaf we store the value A(j). In each internal node we store the sum of the values in the leaves of the subtree beneath that node. It is easily seen that the quantity returned by Retrieve(j, k) can be computed by summing the values stored in no more than 2 log, n nodes of the tree. On the other hand, the number of nodes in the tree whose values depend on A(j) is log, n for each j. We refer to this latter quantity as the degree of redundancy of A(j) in the data structure. Observe that the data structure consisting only of array A(j) has a redundancy of 1. The degree of redundancy is significant if we wish to change the value of A(j). Another reason to be interested in redundancy will be mentioned below. The purpose of this paper is to explore the extent of possible trade-offs between query time and redundancy relative to a large class of possible data structures. We begin by providing a formal statement of this problem. This is followed by a presentation of our main results. Lastly, we conclude with a brief description of related work.
منابع مشابه
Towards a Theory of Indexability (
We consider the problem of indexing general database workloads (combinations of data sets and sets of potential queries). We identify two measures of eeciency of an indexing scheme for a work load: storage redundancy (how many times each item in the data set is stored), and disk access ratio (how many times more blocks than necessary does a query retrieve). We show interesting upper and lower b...
متن کاملTime-Space Trade-Offs for Longest Common Extensions
We revisit the longest common extension (LCE) problem, that is, preprocess a string T into a compact data structure that supports fast LCE queries. An LCE query takes a pair (i, j) of indices in T and returns the length of the longest common prefix of the suffixes of T starting at positions i and j. We study the time-space trade-offs for the problem, that is, the space used for the data structu...
متن کاملEfficient Query Evaluation over Compressed XML Data
XML suffers from the major limitation of high redundancy. Even if compression can be beneficial for XML data, however, once compressed, the data can be seldom browsed and queried in an efficient way. To address this problem, we propose XQueC, an [XQue]ry processor and [C]ompressor, which covers a large set of XQuery queries in the compressed domain. We shred compressed XML into suitable data st...
متن کاملFr{'e}chet and Hausdorff Queries on $x$-Monotone Trajectories
vspace{0.2cm}In this paper, we design a data structure for the following problem. Let $pi$ be an $x$-monotone trajectory with $n$ vertices in the plane and $epsilon >0$. We show how to preprocess $pi$ and $epsilon$ into a data structure such that for any horizontal query segment $Q$ in the plane, one can quickly determine the minimal continuous fraction of $pi$ whose Fr{'e}chet and Hausdo...
متن کاملLower Bounds on the Complexity of Polytope Range Searching
Orthogonal range searching and simplex range searching have received much attention recently in the computational geometry literature. Whereas the former problem is nearing a definitive solution, however, the complexity of simplex range searching has long remained elusive. To state the problem simply, suppose that we are given n points in Euclidean d-space, fixed once and for all, and m units o...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- J. Comput. Syst. Sci.
دوره 23 شماره
صفحات -
تاریخ انتشار 1981